package com.lfd.dubboprovider.service.impl;

import com.lfd.api.MyApiDubboService;
import com.lfd.pojo.UserBean;
import lombok.extern.slf4j.Slf4j;
import org.apache.dubbo.config.annotation.DubboService;

@Slf4j
@DubboService// Dubbo 服务注解，表示这个类将暴露为 Dubbo 服务
public class MyProviderDubboServiceImpl implements MyApiDubboService {


    @Override
    public UserBean getUserBean(Integer id) {
        log.info("getUserBean id:{}", id);
        UserBean userBean = UserBean.builder().age(20).qq("qq")
                .email("email").address("address").phone("phone").password("password").build();
        return userBean;
    }
}
